package com.yodawnla.littleWar.scene;

import org.anddev.andengine.entity.scene.background.SpriteBackground;
import org.anddev.andengine.entity.sprite.Sprite;

import android.view.KeyEvent;

import com.yodawnla.lib.YoScene;
import com.yodawnla.littleWar.system.Tex;

public class GameScene extends YoScene
{	
	@Override
	public void loadScene()
	{
	}
	
	@Override
	public void onEnterScene()
	{
		Sprite bg = new Sprite(0, 0, 480, 800, getTexture(Tex.bg));
		SpriteBackground bgBackGround = new SpriteBackground(bg);
		mScene.setBackground(bgBackGround);
	}
	
	@Override
	public void onExitScene()
	{
		/*unloadMarkedTexturePacks();
		cleanScene();*/
	}
	
	@Override
	public boolean onKeyDown(final int pKeyCode, final KeyEvent pEvent) 
	{
		if(pKeyCode == KeyEvent.KEYCODE_BACK && pEvent.getAction() == KeyEvent.ACTION_DOWN)
		{
			//playSound("SeClick");
			return false;
		}
		return false;
	}
}